package com.oracle.service.impl;

import com.oracle.mapper.CommentMapper;
import com.oracle.pojo.Comment;
import com.oracle.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentMapper commentMapper;

    @Override
    public boolean addComment(Comment comment) {
        return commentMapper.insertComment(comment)>0;
    }
}
